import { GoodsController } from '@/controller/GoodsController';

export const Goods = [
  {
    method: 'get',
    route: '/goods',
    controller: GoodsController,
    action: 'get',
  },
  {
    method: 'post',
    route: '/goods',
    controller: GoodsController,
    action: 'addAndSave',
  },
  {
    method: 'post',
    route: '/goods/upload',
    controller: GoodsController,
    action: 'upload',
  },
  {
    method: 'delete',
    route: '/goods/:id',
    controller: GoodsController,
    action: 'delete',
  },
];
